package com.ruoyi.user_list.domain;

import com.ruoyi.common.utils.SecurityUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 移动端用户管理对象 mobile_user
 * 
 * @author leo
 * @date 2024-10-07
 */
public class MobileUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Integer userId;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 头像 */
    private String avatar;

    /** 电话号码 */
    @Excel(name = "电话号码")
    private String phoneNumber;

    /** 用户状态 */
    @Excel(name = "用户状态")
    private String userStatus;

    /** 密码 */
    private String password;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 年龄 */
    @Excel(name = "年龄")
    private Integer age;

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }
    public void setUserStatus(String userStatus) 
    {
        this.userStatus = userStatus;
    }

    public String getUserStatus() 
    {
        return userStatus;
    }
    public void setPassword(String password) 
    {
        this.password = SecurityUtils.encryptPassword(password);
    }

    public String getPassword() 
    {
        return password;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setAge(Integer age) 
    {
        this.age = age;
    }

    public Integer getAge() 
    {
        return age;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("nickname", getNickname())
            .append("avatar", getAvatar())
            .append("phoneNumber", getPhoneNumber())
            .append("userStatus", getUserStatus())
            .append("password", getPassword())
            .append("gender", getGender())
            .append("age", getAge())
            .toString();
    }
}
